#ifndef STDAFX_H_
#define STDAFX_H_

#ifdef OS_WIN
#define  _CRT_SECURE_NO_WARNINGS

#include <tchar.h>
#include <windows.h>
#include <windowsx.h>

typedef HWND NativeWindow;
#elif defined OS_LINUX
#include <X11/X.h>
#include <limits.h>
#include <stdio.h>
#include <string.h>

typedef Window NativeWindow;
typedef char TCHAR;

#define MAX_PATH PATH_MAX
#define _T(x) x
#define _tcscat     strcat
#define _tcsstr     strstr
#define _tcscpy     strcpy
#define _tcslen     strlen
#define _tcsrchr    strrchr
#define _tcscmp     strcmp
#define _taccess    access
#define _tfopen     fopen
#define _stprintf   sprintf
#endif

#endif